package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

//用户收藏
@Getter
@Setter
@ToString
public class Collect {

    private Long id;
    //关联用的id
    private User user;
    //收藏的攻略
    private Strategy strategy;
    //收藏的日报
    private NewsPage newsPageCollect;
    //收藏的游记
    private Travel travelCollect;
    //收藏的人数
    private Long collect;
    //收藏的状态 0是没有收藏,1是已收藏
    private Integer collectState;
    //浏览量
    private Long view;
    //收藏的时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date collectTime;


}